<?php
namespace Users\Model;

use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;
use Zend\Db\Sql;
use Zend\Db\Sql\Where;
use Zend\Db\Sql\Select;
use Zend\Paginator\Adapter\DbSelect;
use Zend\Paginator\Paginator;
use Zend\Db\Sql\Predicate;
use Zend\Db\Sql\Expression;

class DratesTable
{
    protected $tableGateway;
	protected $select;
	protected $resultSet;
	
	public function __construct(TableGateway $tableGateway)
    {
        $this->tableGateway = $tableGateway;
		$this->select = new Select();
    }	
	 public function addRates($rates)
     {	
	// echo $rates[1];
		
		$data=array(
			 'Flag'				=>	$rates[1],
			 'AreaPrefix'		=>	$rates[2],
			 'CountryName'		=>	$rates[3],
			 'Preminum'			=>	$rates[4],
			 'Standerd'			=>	$rates[5],
			 'BillingCycle'		=>	$rates[6],
			 'status'			=>	0,
		);	
		
		$row=$this->tableGateway->insert($data);	
		return $row;
     }	
}


